package moodish.comm;

import static org.junit.Assert.*;
import moodish.comm.ServerSideMessage.Type;
import org.junit.Test;



public class ServerSideMessageClassTest {

	@Test
	public void testGets() {
		
		String payLoad = "Ricardo";
		String clientNickName = "Jacinto";
		Type type = ServerSideMessage.Type.MOODISH_MESSAGE;
		ServerSideMessageClass ssm = new ServerSideMessageClass(payLoad,clientNickName,type);
		
		String payLoad1 = ssm.getPayload();
		String clientNickName1 = ssm.getClientNickname();
		Type type1 = ssm.getType();
		
		assertEquals(payLoad, payLoad1);
		assertEquals(clientNickName, clientNickName1);
		assertEquals(type, type1);
		
	}
	
}
